package org.hdl.anima.filter;

import org.hdl.anima.message.IRequest;
import org.hdl.anima.message.ResponseCallback;
import org.hdl.anima.session.ISession;
/**
 * 
 * @author qiuhd
 * @since  2014-7-31
 * @version V1.0.0
 */
public class TimeoutFilter implements HandlerFilter {
	private String name;
	public TimeoutFilter() {
		
	}

	@Override
	public void doFilter(ISession session, IRequest request,ResponseCallback callback, FilterChain chain) throws Exception {
		long startTime = System.currentTimeMillis();
		chain.doFilter(session,request,callback);
		long endTime = System.currentTimeMillis();
		System.out.println(endTime - startTime);
	}
}

